package nc.ui.hs.saleorder;
import nc.ui.hs.btn.HsButton;
import nc.ui.pub.FramePanel;
import nc.ui.trade.bill.AbstractManageController;
import nc.ui.trade.manage.BillManageUI;
import nc.ui.trade.manage.ManageEventHandler;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.trade.button.ButtonVO;
import nc.vo.trade.pub.IBillStatus;


public class HsSaleOrderUI extends BillManageUI {

	public HsSaleOrderUI() {
		super();
	}

	public HsSaleOrderUI(Boolean useBillSource) {
		super(useBillSource);
	}

	public HsSaleOrderUI(FramePanel fp) {
		super(fp);
	}

	public HsSaleOrderUI(String pk_corp, String pk_billType, String pk_busitype, String operater, String billId) {
		super(pk_corp, pk_billType, pk_busitype, operater, billId);
	}

	@Override
	protected AbstractManageController createController() {
		return new HsSaleOrderCtrl();
	}
	
	@Override
	protected ManageEventHandler createEventHandler() {
		return new HsSaleOrderEH(this,this.getUIControl());
	}

	@Override
	public void setBodySpecialData(CircularlyAccessibleValueObject[] vos)
			throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	protected void setHeadSpecialData(CircularlyAccessibleValueObject vo,
			int intRow) throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	protected void setTotalHeadSpecialData(CircularlyAccessibleValueObject[] vos)
			throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	protected void initSelfData() {
		// TODO Auto-generated method stub

	}

	@Override
	public void setDefaultData() throws Exception {
		getBillCardPanel().getHeadItem("pk_busitype").setValue(getBusinessType());
		getBillCardPanel().getHeadItem("vbillstatus").setValue(IBillStatus.FREE);
	}
	
	@Override
	public void setCardUIData(AggregatedValueObject vo) throws Exception {
		// TODO Auto-generated method stub
		super.setCardUIData(vo);
	}
	
	@Override
	public String getNodeKey() {
		return super.getNodeKey();
	}

	@Override
	protected void initPrivateButton() {
		addPrivateButton(HsButton.getInstance().getCheckBaseDoc());
	}
}
